

#include <tenacitas_log/file_printer.h>

// #############################################################################
// default_change_file

// -----------------------------------------------------------------------------
std::string default_change_file_policy::m_dir_log( "./" );
std::string default_change_file_policy::m_pgm_name ( "NO-PGM" );
int64_t default_change_file_policy::m_pid ( -1 );
uint64_t default_change_file_policy::m_max_file_size( 1024 * 1014 * 5 );

// -----------------------------------------------------------------------------
void
default_change_file_policy::
config( const std::string & p_dir_log,
        const std::string & p_pgm_name,
        int64_t p_pid,
        uint64_t p_max_file_size ) {
    m_dir_log = p_dir_log;
    m_pgm_name = p_pgm_name;
    m_pid = p_pid;
    m_max_file_size = p_max_file_size;
}

    
